package com.chinasoft.maysham.manager.service.component;

import com.chinasoft.maysham.manager.model.Component;
import com.chinasoft.maysham.manager.response.ComponentStatus;
import com.chinasoft.maysham.manager.response.PageResult;
import org.springframework.data.domain.Pageable;

public interface ComponentService {
    PageResult<Component> findPage(String projectId, String keyword, Pageable pageable);

    Component create(String projectId, Component request);

    Component delete(String projectId, String componentId);

    Component update(String projectId, Component request);

    ComponentStatus start(String componentId);
}
